import 'package:flutter/material.dart';
import 'package:flutter_app/CounterWidget.dart';
class NewRoute extends StatelessWidget {
  //新的路由类似于一个新的页面建构
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return new Scaffold(
      appBar: new AppBar(
        title: new Text('new route'),
      ),
      body: Center(
//        child: new Text('this is a new route'),
        child: new CounterWidget(),
      ),
    );
  }
}